//
//  NSString+Extension.h
//  JiaoX
//
//  Created by yinqy on 15/2/5.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>

//是否是空字符串
#define ISBLANK(str) [NSString isBlankString:str]

@interface NSString (Extension)
-(CGSize)sizeWithFont:(UIFont *)font;
-(CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size;
-(NSString *)trim;
/**
 *  获取指定长度的随机字符串
 *
 *  @param length 长度
 *
 *  @return
 */
+(NSString *)randomStringWithLength:(NSUInteger)length;

- (NSString *)replaceCharacter:(NSString *)oStr withString:(NSString *)nStr;

+(BOOL)isBlankString:(NSString *)str;

+ (NSString *)pathDocumentsWithFileName:(NSString *)filename;
@end
